/* vue */
import { defineComponent } from "vue";
/* mixin */
import VersionControlBaseMixin from '@src/mixins/versionControlMixin/base';
/* version calendar */
import {
  isShowCalendarModule
} from '@shb-lib/version'

export default defineComponent({
  name: "version-control-calendar-mixin",
  mixins: [VersionControlBaseMixin],
  computed: {
    /** 
     * @description 日程 模块 版本控制
    */
    calendarVersionControl(): Record<string, boolean> {
      return {
        isShowCalendarModule: isShowCalendarModule(this._versionControlMap),
      }
    },
    _isShowCalendarModule(): boolean {
      return this.calendarVersionControl.isShowCalendarModule
    },
  }
})
